import request from '../utils/request'

export function list(params) {
  return request({
    url: '/shop/list',
    method: 'get',
    params: params
  })
}

export function find(id) {
  return request({
    url: '/shop/find/' + id,
    method: 'get',
  })
}

export function adminFind(id) {
  return request({
    url: '/admin/shop/find/' + id,
    method: 'get',
  })
}

export function nlist(params) {
  return request({
    url: '/shop/nlist',
    method: 'get',
    params: params
  })
}
// 查找发现文章关联的店铺
export function findAffiliated(id) {
  return request({
    url: '/shop/findAffiliated/' + id,
    method: 'get',
  })
}